//
//  AnswerContentTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by ios-1 on 2018/3/7.
//  Copyright © 2018年 bob. All rights reserved.
//

#import "AnswerContentTableViewCell.h"

@implementation AnswerContentTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.AnswerContentLab.numberOfLines =0;
    [self.contentView layoutIfNeeded];/* important */
    self.AnswerContentLab.preferredMaxLayoutWidth = CGRectGetWidth(self.AnswerContentLab.frame);/* important */
}
- (void)refreshData:(QuestionDetailitem*)data;
{
    self.AnswerContentLab.text = [NSString stringWithFormat:@"%@",data.name];
    if(data.selected == 1)
    {
        self.AnswerStatueImage.image = [UIImage imageNamed:@"勾选"];
    }else{
        self.AnswerStatueImage.image = [UIImage imageNamed:@""];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
